/**
 * Copyright (c) 2010-2011 julewa.com.  
 * All rights reserved. 
 * 
 * @author Huang Benhua
 * @date 2011-7-20
 * 
**/
package com.julewa.db;

public class SearchDefine {
	private boolean parse = true;
	private boolean store = true; 
	
	public SearchDefine(){}
	
	public SearchDefine(boolean p, boolean s){
		parse = p;
		store = s;
	}
	
	public SearchDefine(DB.SEARCH s){
		if(s == null){
			parse = store = false;
		}else{
			parse = s.parse();
			store = s.store();
		}
	}
	
	public boolean isSearchable(){
		return parse || store;
	}

	public boolean isParsable(){
		return parse;
	};
	public boolean isStorable(){
		return store;
	}; 
	
	
}
